using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class QUAY_HANGHOA
	{
	private int iD;
	private int maQuay;
	private int maHang;
	public QUAY_HANGHOA()
	{}
	public QUAY_HANGHOA(int iD,int maQuay,int maHang)
	{
	this.iD = iD;
	this.maQuay = maQuay;
	this.maHang = maHang;
	}
	public int ID{
	get { return this.iD;}
	set { if(value==null) 
		throw new Exception("iD not allow nullvalue.");
		this.iD=value;
	}	}
	public int MaQuay{
	get { return this.maQuay;}
	set { if(value==null) 
		throw new Exception("maQuay not allow nullvalue.");
		this.maQuay=value;
	}	}
	public int MaHang{
	get { return this.maHang;}
	set { if(value==null) 
		throw new Exception("maHang not allow nullvalue.");
		this.maHang=value;
	}	}
	public override string ToString(){
	return this.iD+"; "+this.maQuay+"; "+this.maHang+"; ";
	}
	public override bool Equals(Object obj)
	{
	QUAY_HANGHOA me=(QUAY_HANGHOA)obj;
	bool ret=this.ID.Equals(me.ID);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.ID.GetHashCode();
	}

	}
} 